home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d8 / msk31doc.arc / MSKERMIT.INI < prev    next >
Text File  |  1991-03-26  |  6KB  |  145 lines

  1. ; FILE MSKERMIT.INI
  2. ;
  3. ; Sample initialization file for MS-DOS Kermit 3.10.  Kermit executes the
  4. ; commands in this file automatically when it starts.  Kermit looks for
  5. ; MSKERMIT.INI first in the current disk and directory, and if it is not
  6. ; found there, then in the disks and directories listed in your DOS PATH
  7. ; variable (if any).  You can override Kermit's initialization file
  8. ; search by specifying a different filename on the command line, preceded
  9. ; by the -F switch, for example "kermit -f monday.ini" or "kermit -f nul".
  10. ;
  11. ; Author: Christine M. Gianone, February 1990.
  12. ; Revised for version 3.10 March 1991.
  13.  
  14. echo MS-DOS Kermit 3.10 initialization file...
  15.  
  16. ; Uncomment the following command if you have a valid MSKERMIT.PCH file
  17. ; for version 3.10 of MS-DOS Kermit, obtained from Columbia University.
  18.  
  19. ;; patch                        ; Install patches, if any, from MSKERMIT.PCH.
  20.  
  21. COMMENT - Macro definitions section...
  22.  
  23. ; Reserved variables.  If you define new macros, don't use these variables.
  24. ;  \%e - Last EDIT command filename.
  25. ;  \%n - Last DIAL command phone number.
  26.  
  27. ; Macros for communicating with UNIX, VAX/VMS, and similar systems:
  28. def vax set par non, set flo x, set hand no, set dupl ful, set key \270 \127
  29. def vms do vax, set term byte 8  ; Assumes 8-bit no-parity connection.
  30. def unix do vax, set term byte 7 ; Most UNIX systems are still 7-bit.
  31.  
  32. ; Macro for communicating with IBM mainframes in linemode:
  33. def ibm set par mark, set flo no, set hand xon, set dup ha, set key \270 \8
  34.  
  35. ; Macro for communicating with IBM mainframes in fullscreen mode:
  36. def fullscreen set par ev,set flo x,set hand no,set dupl ful,set key \270 \8
  37.  
  38. ; Additional DOS commands available directly from the MS-Kermit> prompt.
  39.  
  40. ; First define a FATAL error macro.
  41. def fatal echo Error: \%1, stop
  42.  
  43. ; DOS MORE command...
  44. def more if < argc 2 fatal {More what?},-
  45. run more < \%1
  46.  
  47. ; DOS REN(ame) command...
  48. def rename if < argc 2 fatal {Rename what?},-
  49. if < argc 3 fatal {Rename \%1 to what?},-
  50. run ren \%1 \%2
  51.  
  52. ; DOS COPY command...
  53. def copy if < argc 2 fatal {Copy what?},-
  54. if < argc 3 fatal {Copy \%1 to what?},-
  55. run copy \%1 \%2
  56.  
  57. ; DOS CHCP command to examine or change code page...
  58. def chcp run chcp \%1
  59.  
  60. ; EDIT command...
  61. ; Replace "edlin" with your favorite editor or word processor.
  62. def edit if = argc 2 assign \%e \%1,-
  63. if not def \%e fatal {Edit what?},-
  64. run edlin \%e
  65.  
  66. ; CAPTURE command - easy downloading of a file from the host.
  67. ; Unlike the LOG SESSION command, CAPTURE always creates a new file.
  68. ; It overwrites file of same name if it already exists.
  69. ; Usage: at the MS-Kermit> prompt, type "capture xxx" where xxx is the name
  70. ; of the file you want to create on the PC.  Once you are connected to the
  71. ; host, TYPE the desired file.  Escape back when done.  The captured file will
  72. ; be on your disk (with a TYPE command at the beginning & a prompt at the end).
  73. def capture if = argc 1 fatal {Capture into what file?},-
  74.   if exist \%1 del \%1,-
  75.   log session \%1,-
  76.   connect,close session,log sess session.log,close sess
  77.  
  78. ; NOISY and CLEAN macros, modify to suit your environment...
  79. def clean set rec pack 94, set retry 4, set bl 1
  80. def noisy set rec pack 40, set retr 20, set bl 3
  81.  
  82. ; ERRSTP macro, for use with DIAL command...
  83. def errstp echo Error: \%1,hangup,stop
  84.  
  85. ; LOOKUP macro for use with DIAL command...
  86. ; The names and numbers shown here are not real.
  87. ; Replace them with ones you really use.
  88. ; You may also add or delete lines, but the entire macro definition
  89. ; cannot be more than 255 characters long.
  90. def lookup -
  91.   if eq \%1 compuserve def \%n 5551423,-
  92.   if eq \%1 telenet    def \%n 5551234,-
  93.   if eq \%1 tymnet     def \%n 5554321
  94.  
  95. ; DIAL command...
  96. ; Requires the file HAYES.SCR to be on current disk or in DOS PATH.
  97. ; Uses LOOKUP and FATAL macros.
  98. def dial if = argc 2 assign \%n \%1,-
  99.   if < argc 2 if not def \%n fatal {Dial what?},-
  100.   if > argc 2 fatal {No spaces please.},-
  101.   lookup \%n,-
  102.   assign \%1 \%n,-
  103.   take hayes.scr
  104.  
  105. COMMENT - Script defaults
  106.  
  107. set input timeout proceed    ; Allow IF SUCCESS/FAILURE to work
  108. set input echo on        ; Display port input on screen
  109. set input case ignore        ; Ignore alphabet case for input matching
  110.  
  111. COMMENT - Terminal emulation settings.  Modify to suit your environment.
  112.  
  113. set display 7            ; In the 7-bit environment
  114. set terminal vt320        ; Emulate DEC VT320
  115. set terminal roll off        ; Keep rolled-back screens where they are
  116. set terminal wrap on        ; Tell Kermit to do line wrap
  117. set terminal tabs at 1:8    ; Set tabs at every 8 spaces
  118. set terminal cursor underline    ; Underline cursor (rather than block)
  119. set terminal character latin1    ; Use ISO Latin-1 terminal character set
  120.  
  121. COMMENT - File transfer settings
  122.  
  123. set file collision rename    ; Don't overwrite existing files
  124. set transfer character-set transparent ; For compatibility with old versions
  125. set receive packet-length 94    ; Regular-size packets
  126. set attributes on        ; Use file-attribute packets
  127. set window 1            ; Don't use sliding windows
  128.  
  129. COMMENT - Initial PC communication setup.
  130. ;
  131. ; The following commands are commented out, shown as examples only.
  132. ; Replace with settings appropriate for your PC and tastes.
  133. ;
  134. ; set port 1            ; Use COM1
  135. ; do vax            ; Set parameters for talking to VAX
  136. ;                 ; (These are the default parameters anyway)
  137. ;
  138. ; set key \96 \27        ; Exchange ESC and
  139. ; set key \27 \96        ; accent grave keys during terminal emulation
  140. ;
  141. ; set speed 9600                ; Transmission speed
  142. ; set terminal color 0 34 47    ; Terminal color is blue on white
  143.  
  144. echo Smile!
  145.